import { fetch } from '../utils/fetch'

// 获取所有下拉值
const getDropDownList = (data) => fetch({
  url: '/api/SupplierStorageController/dropDownList',
  method: 'POST',
  data
})

// 严重公司是否存在
const supplierCheckIsExist = (data) => fetch({
  url: '/api/SupplierStorageController/supplierCheckIsExist',
  method: 'POST',
  data
})

// 上传微信登录信息
const getStsInformation = (data) => fetch({
  url: '/api/StsInformation/getStsInformation',
  method: 'POST',
  data
})

// 获取省市区
const getAddres = (data) => fetch({
  url: '/api/MaterialCaseController/getAddres',
  method: 'POST',
  data
})

// 保存文件
const saveFile = (data) => fetch({
  url: '/api/SaveFile/saveFile',
  method: 'POST',
  data
})

// 保存
const createSupplierStoragePage = (data) => fetch({
  url: '/api/SupplierStorageController/createSupplierStoragePage',
  method: 'POST',
  data
})

export {
  getDropDownList,
  supplierCheckIsExist,
  getStsInformation,
  getAddres,
  saveFile,
  createSupplierStoragePage
}